Sputum is a secretion that is produced in the lungs and the bronchi (tubes that carry the air to the lung). This mucus-like secretion may become infected, bloodstained, or contain abnormal cells that may lead to a diagnosis. Sputum is what comes up with deep coughing .